package com.kashow.bean.chat;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.kashow.bean.BaseBean;

/**
 * Created by yybs on 16/11/14.
 */

public class BaseChat extends BaseBean implements MultiItemEntity {
    public static final int USER_JOIN = 0;
    public static final int SEND_MESSAGE = 1;
    public static final int SEND_GIFT = 2;
    public static final int USER_EXIT = 3;
    public static final int MESSAGE_SEND = 1;
    public static final int MESSAGE_RECEIVE = 2;


    /**
     * userId : 67
     * userName : 27
     * message : fdsafsdaf
     * level : 2
     */
    private int userId;
    private String userName;
    private String message;
    private int level;
    private String type;
    private String createdAt;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public int getItemType() {
        return 0;
    }

    @Override
    public String toString() {
        return "BaseChat{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", message='" + message + '\'' +
                ", level=" + level +
                ", type='" + type + '\'' +
                '}';
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }
}
